import request from '@/utils/request'

// 查询钓鱼表列表
export function listPhishing(query) {
  return request({
    url: '/system/phishing/list',
    method: 'get',
    params: query
  })
}

// 查询钓鱼表详细
export function getPhishing(phishingId) {
  return request({
    url: '/system/phishing/' + phishingId,
    method: 'get'
  })
}

// 新增钓鱼表
export function addPhishing(data) {
  return request({
    url: '/system/phishing',
    method: 'post',
    data: data
  })
}

// 修改钓鱼表
export function updatePhishing(data) {
  return request({
    url: '/system/phishing',
    method: 'put',
    data: data
  })
}

// 删除钓鱼表
export function delPhishing(phishingId) {
  return request({
    url: '/system/phishing/' + phishingId,
    method: 'delete'
  })
}
